package worldcuptour.activitys;

import worldcuptour.activitys.R.idFiltros;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;

public class FiltrosActivity extends Activity {

	RadioGroup radioGroup;
	Button bRastrear;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_filtros);
		radioGroup = (RadioGroup) findViewById(idFiltros.filtros);
		bRastrear = (Button) findViewById(idFiltros.rastrear);
		bRastrear.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				int selecaoRadioGroup = radioGroup.getCheckedRadioButtonId();
				RadioButton onClick = (RadioButton) findViewById(selecaoRadioGroup);
				
				Intent intent = new Intent(FiltrosActivity.this, InformacoesActivity.class);
				startActivity(intent);
				
			}
		});
	}
}
